package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StudioRecommendMapper;
import com.ruoyi.system.domain.StudioRecommend;
import com.ruoyi.system.service.IStudioRecommendService;

/**
 * 直播间推荐Service业务层处理
 * 
 * @author kinglu
 * @date 2021-11-30
 */
@Service
public class StudioRecommendServiceImpl implements IStudioRecommendService 
{
    @Autowired
    private StudioRecommendMapper studioRecommendMapper;

    /**
     * 查询直播间推荐
     * 
     * @param id 直播间推荐主键
     * @return 直播间推荐
     */
    @Override
    public StudioRecommend selectStudioRecommendById(Long id)
    {
        return studioRecommendMapper.selectStudioRecommendById(id);
    }

    /**
     * 查询直播间推荐列表
     * 
     * @param studioRecommend 直播间推荐
     * @return 直播间推荐
     */
    @Override
    public List<StudioRecommend> selectStudioRecommendList(StudioRecommend studioRecommend)
    {
        return studioRecommendMapper.selectStudioRecommendList(studioRecommend);
    }

    /**
     * 新增直播间推荐
     * 
     * @param studioRecommend 直播间推荐
     * @return 结果
     */
    @Override
    public int insertStudioRecommend(StudioRecommend studioRecommend)
    {
        return studioRecommendMapper.insertStudioRecommend(studioRecommend);
    }

    /**
     * 修改直播间推荐
     * 
     * @param studioRecommend 直播间推荐
     * @return 结果
     */
    @Override
    public int updateStudioRecommend(StudioRecommend studioRecommend)
    {
        return studioRecommendMapper.updateStudioRecommend(studioRecommend);
    }

    /**
     * 批量删除直播间推荐
     * 
     * @param ids 需要删除的直播间推荐主键
     * @return 结果
     */
    @Override
    public int deleteStudioRecommendByIds(Long[] ids)
    {
        return studioRecommendMapper.deleteStudioRecommendByIds(ids);
    }

    /**
     * 删除直播间推荐信息
     * 
     * @param id 直播间推荐主键
     * @return 结果
     */
    @Override
    public int deleteStudioRecommendById(Long id)
    {
        return studioRecommendMapper.deleteStudioRecommendById(id);
    }
}
